def is_leap_year(year):
    if (year % 4 == 0 and year % 100 != 0) or year % 400 == 0:
        return True
    else:
        return False





check_year = int(input("请输入你想查是否闰年的年份："))
if is_leap_year(check_year) == True:
    print(check_year,"年是闰年")
else:
    print(check_year,"年不是闰年")
